<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>上传客观题</legend>
</fieldset>

<div class="layui-upload">
  <button type="button" class="layui-btn layui-btn-normal" id="test8">选择文件</button>
  <button type="button" class="layui-btn" id="test9">开始上传</button>
  <a href="http://pingshif-uploads.stor.sinaapp.com/xls/2018-03-05/5a9d14ac186d2.xls"
     class="layui-btn layui-btn-normal">下载模版</a>
</div>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>上传含图片题目</legend>
</fieldset>

<div class="layui-upload">
  <button type="button" class="layui-btn layui-btn-normal" id="test">选择文件</button>
  <button type="button" class="layui-btn" id="test9">开始上传</button>
  <a href="http://pingshif-uploads.stor.sinaapp.com/xls/2018-03-05/5a9d14ac186d2.xls"
     class="layui-btn layui-btn-normal">下载模版</a>
</div>


<script>
  layui.use('upload', function () {
    var $ = layui.jquery
      , upload = layui.upload;


    //选完文件后不自动上传
    upload.render({
      elem: '#test8'
      , url: 'Question/index'
      , auto: false
      , multiple: true
      , bindAction: '#test9'
      , accept: 'file'
      , done: function (res) {
        console.log(res)
      }
    });


  });
</script>